package cms.models {

  import org.restfulx.models.RxModel;
  
  [Resource(name="payments")]
  [Bindable]
  public class Payment extends RxModel {
    // public static const LABEL:String = "household";

    public var amount:Number = new Number;

    public var checkno:String = "";

    public var note:String = "";

    public var fund:String = "";

    public var paytype:String = "";

    [Lazy]
    [BelongsTo]
    public var deposit:Deposit;

    [Lazy]
    [BelongsTo]
    public var household:Household;

    public override function toString():String {
      return "$" + this.amount + ": " + this.household;
    }

    public function Payment() {
      super(this.toString());
    }
  }
}
